com.prosc.supercontainer.plugin
Class MetadataFlags

java.lang.Object
  extended by com.prosc.supercontainer.plugin.MetadataFlags
All Implemented Interfaces:
java.io.Serializable

public final class MetadataFlags
extends java.lang.Object
implements java.io.Serializable

Represents a set of optional metadata to get from the server for a resource.

See Also:
Serialized Form

Field Summary
(package private)  boolean dimension
          Whether to calculate the width & height dimensions for a resource.
(package private)  boolean md5
          Whether to calculate the MD5 hash for a resource.
(package private)  boolean pageCount
          Whether to calculate the number of pages in a multi-page document.
 
Constructor Summary
MetadataFlags()
           
 
Method Summary
 MetadataFlags setDimension(boolean yn)
          Set whether to calculate the width & height dimensions for a previewable resource.
 MetadataFlags setMd5(boolean yn)
          Set whether to calculate the MD5 hash for a resource.
 MetadataFlags setPageCount(boolean yn)
          Set whether to calculate the number of pages in a multi-page document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dimension

boolean dimension
Whether to calculate the width & height dimensions for a resource.


md5

boolean md5
Whether to calculate the MD5 hash for a resource.


pageCount

boolean pageCount
Whether to calculate the number of pages in a multi-page document.

Constructor Detail

MetadataFlags

public MetadataFlags()
Method Detail

setDimension

public MetadataFlags setDimension(boolean yn)
Set whether to calculate the width & height dimensions for a previewable resource.

Parameters:
yn - true/false
Returns:
the MetadataFlags object, to support chaining calls.

setMd5

public MetadataFlags setMd5(boolean yn)
Set whether to calculate the MD5 hash for a resource.

Parameters:
yn - true/false
Returns:
the MetadataFlags object, to support chaining calls.

setPageCount

public MetadataFlags setPageCount(boolean yn)
Set whether to calculate the number of pages in a multi-page document.

Parameters:
yn - true/false
Returns:
the MetadataFlags object, to support chaining calls.